Posted 20 years ago
by Crispin Horsfield
-
Software developer,
Caz Limited

In the first instance I created a set of three Tool Windows programatically which I arranged (including one floating) and then saved this layout. This reload worked fine.
I've now added code for Document Windows and changed the DockManager DockManagerMdiStyle to Tabbed. That all seemed to work except that on closing the form I got an error: "GDI+ is not properly initialized". This I cured with an explicit Me.Dispose on the form closing method. I haven't a clue as to whether this error is a result of UIStudio or something else.
Now I'm getting some bizarre behaviour: when the application is started, the layout is loaded (including the floating ToolWindow) but clicking on the floating ToolWindow produces no result: no GotFocus fired; no GotFocus event on the inner UserControl. If I then programatically dock the ToolWindow (via a menu event) then the ToolWindow is enabled again and works properly.
Anyone got any ideas what the problem may be?
TIA
Crispin
I've now added code for Document Windows and changed the DockManager DockManagerMdiStyle to Tabbed. That all seemed to work except that on closing the form I got an error: "GDI+ is not properly initialized". This I cured with an explicit Me.Dispose on the form closing method. I haven't a clue as to whether this error is a result of UIStudio or something else.
Now I'm getting some bizarre behaviour: when the application is started, the layout is loaded (including the floating ToolWindow) but clicking on the floating ToolWindow produces no result: no GotFocus fired; no GotFocus event on the inner UserControl. If I then programatically dock the ToolWindow (via a menu event) then the ToolWindow is enabled again and works properly.
Anyone got any ideas what the problem may be?
TIA
Crispin